package com.google.common.reflect;

import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;

import org.junit.Test;
import org.springframework.context.support.BeanDefinitionDsl;

/**
 * @author xin
 * @version 1.0
 */
public class GuavaDemo {

    @Test
    public void resolveVersion() {
        print(new TypeCapture<Map.Entry<String, int[][]>>() {}.capture()
                .toString());

        Map<String, Integer> collect = Arrays.stream(BeanDefinitionDsl.Scope.values()).collect(Collectors.toMap(Enum::name, Enum::ordinal));
        print(collect);
    }


    private void print(Object o) {
        System.out.println(o);
    }
}
